var eventEmitter = require('events')
var myEvet = new eventEmitter()
myEvet.on('begin', () => {
  console.log('begin')
})
myEvet.emit('begin')